{layout name="common@common_layout/template" /}
<section class="panel panel-default">
    <div class="row wrapper">
        <div class="col-sm-3">
            <a style="display: {$Think.session.common_show_all_data?'block':'none'}" href="{:url('public_module/rule/add_rule',['department_id'=>$department_id,'now_name' => $now_name])}"
               class="btn btn-success">添加{$now_name}管理制度</a>
        </div>
        <div class="col-sm-offset-2 col-sm-6" style="font-size: 26px; font-weight: bold;">
            {$now_name}管理制度
        </div>
    </div>
    {volist name="rule_list" id="rule" empty="暂时没有制度"}
    <div class="row wrapper rule_list">
        <div class="col-sm-offset-1 col-sm-10">
            <div class="rule_box" data-id={$rule.id} data-department={$department_id}>
                <div class="rule_top row">
                    <div class="rule_top_left col-sm-1">标题:</div>
                    <div class="rule_top_content col-sm-11">
                        <span>{$rule.title}</span>
                        <div style="display: {$Think.session.common_show_all_data?'block':'none'}" class="rule_top_right">
                            <a href="{:url('public_module/rule/add_rule',['rule_id'=>$rule.id,'now_name' => $now_name,'department_id'=>$department_id])}" class="btn-info">修改</a>
                            <a class="btn-info rule_delete">删除</a>
                        </div>
                    </div>
                </div>
                <div class="rule_content row">
                    <div class="rule_content_left col-sm-1">内容:</div>
                    <div class="rule_content_right col-sm-11">{$rule.content}</div>
                </div>
            </div>
        </div>
    </div>
    {/volist}
</section>
<script src="/static/js/rule/rule.js" type="text/javascript" charset="utf-8"></script>